<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Sets the minimum message severity</title>
 </head>
 <body class="docs"><div id="layout">
  <div id="layout-content"><div id="function.mssql-min-message-severity" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">mssql_min_message_severity</h1>
  <p class="verinfo">(PHP 4, PHP 5, PECL odbtp &gt;= 1.1.1)</p><p class="refpurpose"><span class="refname">mssql_min_message_severity</span> &mdash; <span class="dc-title">Sets the minimum message severity</span></p>

 </div>

 <div id="function.mssql-min-message-severity-refsynopsisdiv">
  <div class="warning"><strong class="warning">Warning</strong><p class="simpara">This function was
<em class="emphasis">REMOVED</em> in PHP 7.0.0.</p></div>
 </div>

 <div class="refsect1 description" id="refsect1-function.mssql-min-message-severity-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>mssql_min_message_severity</strong></span>
    ( <span class="methodparam"><span class="type">int</span> <code class="parameter">$severity</code></span>
   ) : <span class="type"><span class="type void">void</span></span></div>

  <p class="para rdfs-comment">
   Sets the minimum message severity.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.mssql-min-message-severity-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<code class="parameter">severity</code></dt>

     <dd>

      <p class="para">
       The new message severity.
      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.mssql-min-message-severity-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   没有返回值。
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.mssql-min-message-severity-examples">
  <h3 class="title">范例</h3>
  <p class="para">
   <div class="example" id="example-1767">
    <p><strong>Example #1 <span class="function"><strong>mssql_min_message_severity()</strong></span> example</strong></p>
    <div class="example-contents">
<div class="phpcode"><pre><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br /></span><span style="color: #FF8000">//&nbsp;Connect&nbsp;to&nbsp;MSSQL<br /></span><span style="color: #0000BB">mssql_connect</span><span style="color: #007700">(</span><span style="color: #DD0000">'KALLESPC\SQLEXPRESS'</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'sa'</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'phpfi'</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">//&nbsp;Set&nbsp;the&nbsp;minimum&nbsp;message&nbsp;severity&nbsp;to&nbsp;17,&nbsp;this<br />//&nbsp;will&nbsp;not&nbsp;show&nbsp;any&nbsp;messages&nbsp;issued&nbsp;by&nbsp;the&nbsp;underlaying<br />//&nbsp;API&nbsp;when&nbsp;we&nbsp;select&nbsp;a&nbsp;non-existent&nbsp;database&nbsp;below<br /></span><span style="color: #0000BB">mssql_min_message_severity</span><span style="color: #007700">(</span><span style="color: #0000BB">17</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">//&nbsp;Select&nbsp;a&nbsp;non-existent&nbsp;database<br /></span><span style="color: #0000BB">mssql_select_db</span><span style="color: #007700">(</span><span style="color: #DD0000">'THIS_DATABASE_DOES_NOT_EXISTS'</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</pre></div>
    </div>

    <div class="example-contents"><p>以上例程会输出：</p></div>
    <div class="example-contents screen">
<div class="cdata"><pre>
mssql_select_db(): Unable to select database:  THIS_DATABASE_DOES_NOT_EXISTS
</pre></div>
    </div>
   </div>
  </p>
 </div>


</div></div></div></body></html>